﻿
using AutoMapper;
using WebApplication1.DTO;
using WebApplication1.Models.商品信息;
using WebApplication1.Models.商品信息.养殖;

namespace WebApplication1
{
    /// <summary>
    /// AutoMapper映射类
    /// </summary>
    public class MappingProfile : Profile
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public MappingProfile()
        {
            CreateMap<GoodsModel,GoodDto>().ReverseMap();
            CreateMap<GoodsModel, CreateGoodDto>().ReverseMap();
            
            CreateMap<BreedingModel, BreedDto>().ReverseMap();

            CreateMap<ImmunityDto, ImmunityModel>().ReverseMap();
        }
    }
}
